﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace The_Manilla_Project
{
    public partial class medit : Form
    {
        public medit()
        {
            InitializeComponent();
        }

        private void medit_Load(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            textBox1.Text = file.ReadLine();
            textBox2.Text = file.ReadLine();
            textBox3.Text = file.ReadLine();
            textBox4.Text = file.ReadLine();
            textBox5.Text = file.ReadLine();
            textBox6.Text = file.ReadLine();
            textBox7.Text = file.ReadLine();
            textBox8.Text = file.ReadLine();
            textBox9.Text = file.ReadLine();
            textBox10.Text = file.ReadLine();
            textBox11.Text = file.ReadLine();
            textBox12.Text = file.ReadLine();
            textBox13.Text = file.ReadLine();
            textBox14.Text = file.ReadLine();
            textBox15.Text = file.ReadLine();
            textBox16.Text = file.ReadLine();
            textBox17.Text = file.ReadLine();
            textBox18.Text = file.ReadLine();
            textBox19.Text = file.ReadLine();
            textBox20.Text = file.ReadLine();
            textBox21.Text = file.ReadLine();
            textBox22.Text = file.ReadLine();
            textBox23.Text = file.ReadLine();
            textBox24.Text = file.ReadLine();
            textBox25.Text = file.ReadLine();
            textBox26.Text = file.ReadLine();
            textBox27.Text = file.ReadLine();
            textBox28.Text = file.ReadLine();
            textBox29.Text = file.ReadLine();
            file.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            f2.WriteLine(textBox1.Text);
            f2.WriteLine(textBox2.Text);
            f2.WriteLine(textBox3.Text);
            f2.WriteLine(textBox4.Text);
            f2.WriteLine(textBox5.Text);
            f2.WriteLine(textBox6.Text);
            f2.WriteLine(textBox7.Text);
            f2.WriteLine(textBox8.Text);
            f2.WriteLine(textBox9.Text);
            f2.WriteLine(textBox10.Text);
            f2.WriteLine(textBox11.Text);
            f2.WriteLine(textBox12.Text);
            f2.WriteLine(textBox13.Text);
            f2.WriteLine(textBox14.Text);
            f2.WriteLine(textBox15.Text);
            f2.WriteLine(textBox16.Text);
            f2.WriteLine(textBox17.Text);
            f2.WriteLine(textBox18.Text);
            f2.WriteLine(textBox19.Text);
            f2.WriteLine(textBox20.Text);
            f2.WriteLine(textBox21.Text);
            f2.WriteLine(textBox22.Text);
            f2.WriteLine(textBox23.Text);
            f2.WriteLine(textBox24.Text);
            f2.WriteLine(textBox25.Text);
            f2.WriteLine(textBox26.Text);
            f2.WriteLine(textBox27.Text);
            f2.WriteLine(textBox28.Text);
            f2.WriteLine(textBox29.Text);
            f2.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            openFileDialog1.InitialDirectory = Properties.Settings.Default.pth + "\\apps";
            openFileDialog1.ShowDialog();
            
        }
    }
}
